<div id="background">
    <form *ngIf="hotel">
        <div class="layui-form layui-anim layui-anim-up">
            <div class="layui-form-item">
                <label class="layui-form-label">酒店名称</label>
                <div class="layui-input-block">
                    <input type="text" name="hotelname" required lay-verify="required" placeholder="请输入酒店名称" autocomplete="off" class="layui-input" [(ngModel)]="hotel.name">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">酒店电话</label>
                <div class="layui-input-block">
                    <input type="text" name="phonenumber" required lay-verify="required" placeholder="请输入电话" autocomplete="off" class="layui-input" [(ngModel)]="hotel.phoneNumber">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">酒店公告</label>
                <div class="layui-input-block">
                    <input type="text" name="announcement" required lay-verify="required" placeholder="请输入酒店公告" autocomplete="off" class="layui-input" [(ngModel)]="hotel.announcement">
                </div>
            </div>


            <div class="layui-form-item">
                <div class="layui-form-inline">
                    <label class="layui-form-label">酒店状态</label>
                    <div class="layui-input-inline">
                        <input type="text" name="status" required lay-verify="required" placeholder="请输入状态" autocomplete="off" class="layui-input" [(ngModel)]="hotel.status">
                    </div>
                </div>

                <div class="layui-form-inline">
                    <label class="layui-form-label">成立时间</label>
                    <div class="layui-input-inline">
                        <input type="date" name="date" id="date" placeholder="请输入成立时间" class="layui-input" [(ngModel)]="hotel.date">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
               


                <div class="layui-form-inline">
                    <label class="layui-form-label">开始时间</label>
                    <div class="layui-input-inline">
                        <input type="time" name="open" id="open" placeholder="请输入开始营业时间" class="layui-input" [(ngModel)]="hotel.open">
                    </div>
                </div>
                <div class="layui-form-inline">
                    <label class="layui-form-label">结束时间</label>
                    <div class="layui-input-inline">
                        <input type="time" name="close" id="close" placeholder="请输入结束营业时间" class="layui-input" [(ngModel)]="hotel.close">
                    </div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">酒店地址</label>
                <div class="layui-input-block">
                    <input type="text" name="address" lay-verify="title" autocomplete="off" placeholder="请输入地址" class="layui-input" [(ngModel)]="hotel.address">
                </div>
            </div>

            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">酒店描述</label>
                <div class="layui-input-block">
                    <textarea name="desc" placeholder="请输入描述信息" class="layui-textarea" [(ngModel)]="hotel.desc"></textarea>
                </div>
            </div>

            <div class="layui-form-item" id="buttons">
                <div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo" (click)="updateHotel()">确定修改</button>
                    <button type="reset" class="layui-btn layui-btn-primary" (click)="reset()">重置</button>
                </div>
            </div>
        </div>
    </form>
</div>